<template>
	<view class="content">
		<!-- 所有内容的容器 -->
		
	</view>

</template>

<script>
	import AnNoticeBar from '@/components/an-notice-bar/an-notice-bar.vue';
	import sempNoticeBar from "@/components/semp-notice-bar/semp-notice-bar.vue"
	export default {
		components: {
			AnNoticeBar,
			sempNoticeBar
		},
		data() {
			return {
				keyword: '',
				href: 'https://uniapp.dcloud.io/component/README?id=uniui',
				date: '2020-01-01',
				news: [],
				slide: [],
				nav: [],
				tabbar: [],
				notice: [],
				ad: [],
				tj: {},
				lng: 0,
				lat: 0,
				weather: '',
				hotvillage: [],
				hotvillagecurrent: 0,
				villagelist: [{
					name: '乡村统计'
				}, {
					name: '数据统计'
				}],
				villagecurrent: 0,
				status: 'loadmore',
				village_list: [],
				page: 1,
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '已全部加载'
				},
				tabbar_current:0,
			}
		},
		onLoad: function() {
			var that = this;
			uni.request({
				url: this.$unishow + 'api/index/style',
				method: 'GET',
				data: {},
				success: res => {
					this.$tourl('/pages/index/'+res.data.index_style);
				},
				fail: () => {},
				complete: () => {}
			});
			
			
		},
		methods: {
			
			beforeSwitch(index) { //底部导航选择
				this.$tourl(this.tabbar[index].pagePath)
			}
		}
	}
</script>

<style>
	page {
		background-color: #eceef4;
	}

	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}

	.grid-image {
		padding: 8px 0px;
	}

	.swiper {
		height: 110px;
	}

	.indicator-dots {
		margin-top: 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.indicator-dots-item {
		background-color: #C0C0C0;
		height: 6px;
		width: 6px;
		border-radius: 10px;
		margin: 0 3px;
	}

	.indicator-dots-active {
		background-color: #38a93e;
	}
</style>
